package org.nanfang.test12;

public class MainTest {
    public static void main(String[] args) {
        //注意：当前多个线程共享相同的资源是，很有可能发发生线程安全问题
        //1.创建建一个MyRunnable
        MyRunnable mr = new MyRunnable();
        //2.创建一个Thread对象
        Thread thread = new Thread(mr);
        //3.启动线程
        thread.start();
    }
}
